<div class="row" ms-controller="Question">
    <!--标题-->
    <div class="col-md-12">

        <div class="row" style="padding-top: 10px">
            <!--<div style="left: 20%;position: absolute;margin-top: 20px">-->
            <!--<div style="display: inline-block">-->
                <!--<div class="input-group">-->
                    <!--<span class="input-group-addon">选择科目</span>-->
                    <!--<select class="form-control" :click-1="@subjctfn" :click-2="@titlefn" :duplex="@subjectfind" >-->
                        <!--<option :for="(k,v) in @subjct">{{v.Name}}</option>-->
                    <!--</select>-->
                <!--</div>-->
                <div class="search_head col-md-8" style="margin-top: 10px">
                    <!--<span style=" font-size: 15px;margin-left: 20px">科目 </span><input type="text" class="form-control" style=" display: inline-block;width: 150px;" >-->

                    <span style=" font-size: 15px;margin-left: 20px">科目</span><select class="form-control" style=" display: inline-block;width: 150px;" :click-1="@subjctfn" :click-2="@titlefn" :duplex="@subjectfind">
                    <option :for="(k,v) in @subjct">{{v.Name}}</option>
                </select>
                    <span style=" font-size: 15px;margin-left: 20px">知识点</span><select class="form-control" style=" display: inline-block;width: 150px;"><option></option></select>
                    <span style=" font-size: 15px;margin-left: 20px">难度</span><select class="form-control" style=" display: inline-block;width: 150px;"><option></option></select>
                    <!--<span style=" font-size: 15px;">试卷模板 </span><input type="text" class="form-control" style=" display: inline-block;width: 150px;">-->
                    <button type="button" class="btn btn-default navbar-btn" style="margin-left: 20px"
                            :click="@waysallfn">查询
                    </button>
                <!--</div>-->

            <!--</div>-->
            <span style="margin-left: 50px;font-size: 1.2em">共{{@titlenum}}道题</span>
            </div>
            <button class="pull-right btn btn-info" data-toggle="modal" data-target="#myModal">导入题库</button>
            <!--<a class="navbar-brand add" href="#" id="batch-add"-->
            <!--data-toggle="modal" data-target="#myModal">批量添加</a>-->
            <!-- 模态框（Modal） -->
            <div class="modal fade dialog" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h3 class="modal-title" id="myModalLabel" style="text-align: center">导入题库</h3>
                        </div>
                        <div class="modal-body">
                            <input type="file">
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary">提交</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal -->
            </div>
            <!--题库表格-->
            <table class="table table-responsive table-bordered" style="margin: 100px 5px;text-align: center;" id="userTable">
                <thead style="word-break: keep-all;white-space: nowrap">
                <tr>
                    <td>序号</td>
                    <td>题目</td>
                    <td>答案</td>
                    <td>知识点</td>
                    <td>科目</td>
                    <td>难度</td>
                    <td>分数</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody>
                <tr :for="(k,v) in @titleAll">
                    <!--ms-input="@all"-->
                    <td style="cursor: pointer;text-align: center" class="ola-pointer">
                       {{k}}
                    </td>
                    <td>{{v.Title}}</td>
                    <td>{{v.Answer}}</td>
                    <td>{{v.Score}}</td>
                    <td style="min-width: 200px;">
                        <button class="btn btn-sm btn-link">预览</button>
                        <button class="btn btn-sm btn-link">编辑</button>
                        <button class="btn btn-sm btn-link">删除</button>
                    </td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="80">
                        <div class="row">
                            <div class="col-md-5">
                                <span>第&nbsp;</span><span>{{@Search.P}}</span><span>&nbsp;页</span>&nbsp;&nbsp;
                                <span>共&nbsp;</span><span>{{@Search.TP}}</span><span>&nbsp;页</span>
                            </div>
                            <div class="col-md-5">
                                <ul class="pagination" style="margin: 0 0 0 0;">
                                    <li :if="@Search.P>1"><a :click="@Search.P--">&laquo;</a></li>
                                    <li :for="v in @Search.Pages" :click="@Search.P=v"><a
                                            :class="[(@Search.P==v?'selected':'')]">{{v}}</a></li>
                                    <li :if="@Search.P<@Search.TP"><a :click="@Search.P++">&raquo;</a></li>
                                </ul>
                            </div>
                        </div>
                    </td>
                </tr>
                </tfoot>
            </table>

        </div>
    </div>
</div>
